﻿using System;
using System.Data;
using System.Windows.Forms;
using ClientApp.UC;

namespace ClientApp
{
    public partial class frmSvcCheck : Form
    {
        public frmSvcCheck()
        {
            InitializeComponent();
        }

        private void frmSvcCheck_Load(object sender, EventArgs e)
        {
            Controls.Clear();

            foreach (DataRow rw in Classes.sharedObj.Servers.Rows)
            {
                ucCheck uc = new ucCheck(rw[0] as string, rw[1] as string) {Dock = DockStyle.Top};
                Controls.Add(uc);
                uc.BringToFront();
            }
        }
    }
}
